public class Main {
    public static void main(String[] args) {
        try{
            TV tv;
            TVFactory factory;
            factory = (TVFactory)XMLUtil.getBean();
            tv = factory.produceTV();
            tv.play();
        }
        catch(Exception e)
        {
         	System.out.println(e.getMessage());
        }  
    }
}